local skel = fk.CreateSkill {
  name = "lb_zero__mengyao_tepeishi",
}

Fk:loadTranslationTable {
  ["lb_zero__mengyao_tepeishi"] = "特佩什",
  [":lb_zero__mengyao_tepeishi"] = "首次获得此技能时，你将手牌摸至六张。出牌阶段限一次，你可以对一名角色造成1点伤害，然后你摸一张牌。",

  ["#lb_zero__mengyao_tepeishi"] = "特佩什：你可以对一名角色造成1点伤害，然后你摸一张牌",

  ["$lb_zero__mengyao_tepeishi1"] = "",
  ["$lb_zero__mengyao_tepeishi2"] = "",
}


skel:addEffect("active", {
  prompt = "#lb_zero__mengyao_tepeishi",
  can_use = function(self, player)
    return player:usedSkillTimes(skel.name, Player.HistoryPhase) == 0
  end,
  target_filter = function (self, player, to_select, selected, selected_cards, card, extra_data)
    return #selected == 0
  end,
  card_filter = Util.FalseFunc,
  feasible = function (self, player, selected, selected_cards, card)
    return #selected == 1
  end,
  on_use = function(self, room, skillUseEvent)
    local player = skillUseEvent.from
    room:damage {
      from = player,
      to = skillUseEvent.tos[1],
      damage = 1,
      skillName = skel.name,
    }
    if player:isAlive() then
      player:drawCards(1, skel.name)
    end
  end,
})


skel:addAcquireEffect(function(self, player, is_start)
  if player.room:addTableMarkIfNeed(player, "lb_zero__mengyao_high_skills", skel.name) and player:getHandcardNum() < 6 then
    player.room:broadcastPlaySound("./packages/lb_kill_zero/audio/skill/mengyao_audio/yihai_" .. math.random(5, 6))
    player:drawCards(6 - player:getHandcardNum(), skel.name)
  end
end)

return skel
